﻿using System.ComponentModel.DataAnnotations;

namespace AdminSystem.WebApi.DTOs
{
    public class UserDto
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        [StringLength(50)]
        public string UserName { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        [StringLength(50)]
        public string UserPass { get; set; }
        /// <summary>
        /// 用户昵称
        /// </summary>
        [StringLength(50)]
        public string UserNickname { get; set; }
        /// <summary>
        /// 角色编号
        /// </summary>
        public int RoleId { get; set; }
        public string RoleName { get; set; }
    }
}
